define(function (require, exports, module) {

    var mCard = require('andrew/card/index.js');

    require("andrew/directive/input-focus.js");
    require("andrew/directive/img-lazyload.js");
    require("andrew/directive/swiper.js");
    require("andrew/directive/layer.js");

    var Highlight = require("https://cdn.bootcss.com/highlight.js/9.12.0/highlight.min.js");
    require("https://cdn.bootcss.com/highlight.js/9.12.0/styles/monokai-sublime.min.css");


    var code = require("andrew/card/index.html");

    Vue.directive('highlight', {
        bind(el) {
            Highlight.highlightBlock(el);
        }
    });

    var app = new Vue({
        data: function () {
            return {
                list: [
                    {
                        url: "http://pic4.40017.cn/line/admin/2016/12/27/17/PW941D_224x160_00.jpg"
                    },
                    {
                        url: "http://pic3.40017.cn/line/admin/2015/09/30/11/2oPhmn_224x160_00.jpg"
                    }
                ],
                html: code,
                layerConfig: {
                    type: 2,
                    content: 'http:///www.baidu.com',
                    area: ['85%', '90%']
                }
            }
        },
        directives: {
            'color-orangered': {
                // 指令的定义
                inserted: function (el) {
                    $(el).css({
                        'color': 'orangered'
                    });
                }
            }
        }
    }).$mount('#app')


});